package com.lagou.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email",path = "/api/email")
public interface CodeServiceFeignClient {

    @RequestMapping("/{email}/{code}")
    public String sendEmail(@PathVariable("email")String email, @PathVariable("code") String code);

}
